import WidgetProps,{type IWidgetProps} from "./WidgetProps";
import { WidgetStatus } from "../index"

export interface ReactiveProps {
  span: number,
  _span?: {px:number,span:number},
}

export interface ILayoutProps extends IWidgetProps{
  layout_status?: WidgetStatus,
  layout_reactive?: ReactiveProps,
}
export default class LayoutProps extends WidgetProps implements ILayoutProps{

  public layout_status = '2' as WidgetStatus;
  public layout_reactive = {
    span: 12
  };

  constructor(props?:ILayoutProps) {
    super(props);
    if(props){
      this.layout_status = props.layout_status || this.layout_status;
      this.layout_reactive = props.layout_reactive || this.layout_reactive;
    }
  }
}